package com.navi.loaddata.core.mysqlEntity;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by ghost on 2018/5/7.
 */
@Entity
@Table(name = "etl_email_d", schema = "ch_qms", catalog = "")
public class EtlEmailD {
    private int receiverId;
    private String projectName;
    private String jobGroupName;
    private String jobName;
    private String receiver;
    private String validFlg;
    private Timestamp createTime;
    private Timestamp updateTime;
    private String evtUsr;
    private String remark;

    @Id
    @Column(name = "RECEIVER_ID")
    public int getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(int receiverId) {
        this.receiverId = receiverId;
    }

    @Basic
    @Column(name = "PROJECT_NAME")
    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    @Basic
    @Column(name = "JOB_GROUP_NAME")
    public String getJobGroupName() {
        return jobGroupName;
    }

    public void setJobGroupName(String jobGroupName) {
        this.jobGroupName = jobGroupName;
    }

    @Basic
    @Column(name = "JOB_NAME")
    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    @Basic
    @Column(name = "RECEIVER")
    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    @Basic
    @Column(name = "VALID_FLG")
    public String getValidFlg() {
        return validFlg;
    }

    public void setValidFlg(String validFlg) {
        this.validFlg = validFlg;
    }

    @Basic
    @Column(name = "CREATE_TIME")
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "UPDATE_TIME")
    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "EVT_USR")
    public String getEvtUsr() {
        return evtUsr;
    }

    public void setEvtUsr(String evtUsr) {
        this.evtUsr = evtUsr;
    }

    @Basic
    @Column(name = "REMARK")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        EtlEmailD etlEmailD = (EtlEmailD) o;

        if (receiverId != etlEmailD.receiverId) return false;
        if (projectName != null ? !projectName.equals(etlEmailD.projectName) : etlEmailD.projectName != null)
            return false;
        if (jobGroupName != null ? !jobGroupName.equals(etlEmailD.jobGroupName) : etlEmailD.jobGroupName != null)
            return false;
        if (jobName != null ? !jobName.equals(etlEmailD.jobName) : etlEmailD.jobName != null) return false;
        if (receiver != null ? !receiver.equals(etlEmailD.receiver) : etlEmailD.receiver != null) return false;
        if (validFlg != null ? !validFlg.equals(etlEmailD.validFlg) : etlEmailD.validFlg != null) return false;
        if (createTime != null ? !createTime.equals(etlEmailD.createTime) : etlEmailD.createTime != null) return false;
        if (updateTime != null ? !updateTime.equals(etlEmailD.updateTime) : etlEmailD.updateTime != null) return false;
        if (evtUsr != null ? !evtUsr.equals(etlEmailD.evtUsr) : etlEmailD.evtUsr != null) return false;
        if (remark != null ? !remark.equals(etlEmailD.remark) : etlEmailD.remark != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = receiverId;
        result = 31 * result + (projectName != null ? projectName.hashCode() : 0);
        result = 31 * result + (jobGroupName != null ? jobGroupName.hashCode() : 0);
        result = 31 * result + (jobName != null ? jobName.hashCode() : 0);
        result = 31 * result + (receiver != null ? receiver.hashCode() : 0);
        result = 31 * result + (validFlg != null ? validFlg.hashCode() : 0);
        result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
        result = 31 * result + (updateTime != null ? updateTime.hashCode() : 0);
        result = 31 * result + (evtUsr != null ? evtUsr.hashCode() : 0);
        result = 31 * result + (remark != null ? remark.hashCode() : 0);
        return result;
    }
}
